using FluentValidation;
	
namespace VehicleModule.Api.Model
{
    /// <summary>
    ///车辆用户表 验证类
    /// </summary>
    public class UsersUpdateRequestValidator : AbstractValidator<UsersUpdateRequest>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public UsersUpdateRequestValidator()
        {
            RuleFor(s => s.UserName).NotEmpty().Length(0, 100);
            RuleFor(s => s.Account).NotEmpty().Length(0, 100);
            RuleFor(s => s.Password).NotEmpty().Length(0, 100);
            RuleFor(s => s.RandomNumber).NotEmpty().Length(0, 100);
            RuleFor(s => s.Email).NotEmpty().Length(0, 100);
            RuleFor(s => s.Mobile).NotEmpty().Length(0, 100);
        }
    }
}
